package sjtu.sonnet.LDAPModule.RBAC.model.permission;

import sjtu.sonnet.LDAPModule.RBAC.model.operation.AbstractOperation;
import sjtu.sonnet.LDAPModule.RBAC.model.resource.AbstractResource;

public class Permission implements iPermission {

	public Permission() {

	}

	public Permission(String name) {
		this.name = name;
	}

	public Permission(AbstractOperation operation, AbstractResource resource) {
		this.operation = operation;
		this.resource = resource;
	}

	public void setOperation(AbstractOperation operation) {
		this.operation = operation;
	}

	public AbstractOperation getOperation() {
		return operation;
	}

	public void setResource(AbstractResource resource) {
		this.resource = resource;
	}

	public AbstractResource getResource() {
		return resource;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	private AbstractOperation operation = null;
	private AbstractResource resource = null;
	private String name = null;

}
